import request from '@/utils/request'

// 查询用户资金流水列表
export function listUserFlow(query) {
  return request({
    url: '/user/userFlow/list',
    method: 'get',
    params: query
  })
}

// 查询用户资金流水详细
export function getUserFlow(id) {
  return request({
    url: '/user/userFlow/' + id,
    method: 'get'
  })
}

// 新增用户资金流水
export function addUserFlow(data) {
  return request({
    url: '/user/userFlow',
    method: 'post',
    data: data
  })
}

// 修改用户资金流水
export function updateUserFlow(data) {
  return request({
    url: '/user/userFlow',
    method: 'put',
    data: data
  })
}

// 删除用户资金流水
export function delUserFlow(id) {
  return request({
    url: '/user/userFlow/' + id,
    method: 'delete'
  })
}
